<?php



Route::post('/upload/image', 'UploadController@upload')->name('upload');
Route::post('/login', 'LoginController@login')->name('business_login');
Route::get('/logout', 'LoginController@getUserInfo');
Route::get('/info', 'LoginController@getUserInfo');
Route::get('/menu/list', 'MenusController@getMenus');
Route::post('/menu/create', 'MenusController@createMenus');
Route::get('/menu/del', 'MenusController@delMenus');

Route::get('/selfDevice', 'DeviceController@selfList');
Route::get('/house/del', 'HouseController@del');
//创建编辑房源
Route::post('/house/create', 'HouseController@create');


//回收设备
Route::get('/device/recoveryDevice', 'DeviceController@recoveryDevice');
//解除房东
Route::get('/device/removeBusiness', 'DeviceController@removeBusiness');
//划拨设备
Route::post('/device/batchAgent', 'DeviceController@batchAgent');
// 合闸
Route::post('/device/start', 'LoginController@start');
//创建经销商
Route::post('/create', 'LoginController@create');
Route::post('/edit', 'LoginController@edit');
//设备列表
Route::get('/device/list', 'DeviceController@index');
Route::get('/device/count', 'DeviceController@deviceCount');
Route::get('/device/unbind', 'DeviceController@unbind');
//子经销商列表
Route::get('/child/list', 'LoginController@childList');
//订单列表
Route::get('/order/list', 'DeviceController@orderList');
//银行信息相关
Route::get('/account/bankInfo', 'AccountController@bankInfo');
Route::post('/account/bindBank', 'AccountController@bindBank');
Route::post('/account/unbindBank', 'AccountController@unbindBank');
Route::get('/account/bankCode', 'AccountController@getBankCode');
Route::post('/account/sendSmsCode', 'AccountController@sendSmsCode');
Route::post('/account/checkSmsCode', 'AccountController@checkSmsCode');
Route::post('/account/drawCash', 'AccountController@drawCash');
Route::get('/account/cashLog', 'AccountController@cashLog');
Route::get('/account/amountLog', 'AccountController@amountLog');

//营收报表相关
Route::get('/account/getCharts', 'AccountController@getCharts');
Route::get('/account/amountCharts', 'AccountController@amountCharts');
Route::get('/account/insideProfit', 'AccountController@insideProfit');
Route::get('/account/amountProfit', 'AccountController@amountProfit');
